package cn.tedu.spring.life;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: Miyako
 * @Date: 2024-08-03-9:22
 * @Description:
 */
public class TestLife {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.life");

        Life life = context.getBean(Life.class);

        System.out.println("使用");

        context.close();


    }
}
